<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>专业信息管理</title>
    <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css">
    <script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
    <script src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
</head>
<body>

<div class="list-main-container">
    <div class="row" style="border: 3px;margin-top: 20px">
        <div class="col-sm-6"  >
            <button class="btn btn-primary btn-sm" data-toggle="modal" data-target="#majorAdd">新增专业信息</button>
        </div>
        <div class="col-sm-6">
                <div class="form-group">
                    <div class="col-sm-6">
                            <select class="form-control" id="majorType" >
                                <option value="">请选择专业</option>
                                <option value="计算机">计算机</option>
                                <option value="信息安全">信息安全</option>
                                <option value="信息管理">信息管理</option>
                                <option value="法学">法学</option>
                                <option value="公安技术">公安技术</option>
                            </select>
                    </div>
                    <button class="btn btn-primary btn-sm" id="key-query">查询</button>
                </div>
        </div>


    </div>
    <table class="table" id="table-list">
        <thead>
            <th><input type="checkbox" name="cb-check-all"></th>
            <th>序号</th>
            <th>专业名称</th>
            <th>招生人数</th>
            <th>专业年制</th>
            <th>录取成绩</th>
            <th>操作功能</th>
        </thead>
        <tbody>
        </tbody>
    </table>
</div>

<!--专业信息添加模块-->
<div class="modal fade" id="majorAdd" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
                </button>
                <h4 class="modal-title" id="major-add">
                    专业信息添加
                </h4>
            </div>
            <form class="form-horizontal" role="form" id="form-add-major">
                <div class="form-group">
                    <label class="col-sm-2 control-label">专业名称</label>
                    <div class="col-sm-10">
                        <select class="form-control" id="add-major-name" name="majorName">
                            <option>计算机</option>
                            <option>信息安全</option>
                            <option>信息管理</option>
                            <option>法学</option>
                            <option>公安技术</option>
                        </select>
                    </div>
                </div>

                <div class="form-group">
                    <label class="col-sm-2 control-label">招生人数</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" id="add-major-count"
                               placeholder="请输入人数" name="majorCount">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">专业年制</label>
                    <div class="col-sm-10">
                        <select class="form-control" id="add-major-year" name="majorYear">
                            <option>3</option>
                            <option>4</option>
                            <option>5</option>
                            <option>6</option>
                        </select>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">录取分数线</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" id="add-major-score"
                               placeholder="请输入录取分数线" name="majorScore">
                    </div>
                </div>
            </form>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">
                    关闭
                </button>
                <button type="button" class="btn btn-primary" id="btn-add-Major">
                    提交更改
                </button>
            </div>
        </div><!-- /.modal-content -->
    </div><!-- /.modal-dialog -->
</div><!-- /.modal -->


<!-- 专业信息修改模块-->

<div class="modal fade" id="majorEdit" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
                </button>
                <h4 class="modal-title" id="major-edit">
                    专业信息添加
                </h4>
            </div>
            <form class="form-horizontal" role="form"  id="form-edit-major">
                <input type="hidden" id="edit-major-id">
                <div class="form-group">
                    <label class="col-sm-2 control-label">专业名称</label>
                    <div class="col-sm-10">
                        <select class="form-control" id="edit-major-name" name="majorName">
                            <option selected="selected">计算机</option>
                            <option>信息安全</option>
                            <option>信息管理</option>
                            <option>法学</option>
                            <option>公安技术</option>
                        </select>
                    </div>
                </div>

                <div class="form-group">
                    <label class="col-sm-2 control-label">招生人数</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" id="edit-major-count"
                               placeholder="请输入人数" name="majorCount">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">专业年制</label>
                    <div class="col-sm-10">
                        <select class="form-control" id="edit-major-year" name="majorYear">
                            <option selected="selected">3</option>
                            <option>4</option>
                            <option>5</option>
                            <option>6</option>
                        </select>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">录取分数线</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" id="edit-major-score"
                               placeholder="请输入录取分数线" name="majorScore">
                    </div>
                </div>
            </form>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">
                    关闭
                </button>
                <button type="button" class="btn btn-primary" id="btn-edit-Major">
                    提交更改
                </button>
            </div>
        </div><!-- /.modal-content -->
    </div><!-- /.modal-dialog -->
</div><!-- /.modal -->


<!--详情模块-->
<div class="modal fade" id="majorShow" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
                </button>
                <h4 class="modal-title" id="major-show">
                    专业信息详情
                </h4>
            </div>
            <form class="form-horizontal" role="form">

                <div class="form-group">
                    <label class="col-sm-2 control-label">专业编号</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" id="show-major-id"
                               placeholder="请输入专业" name="id">
                    </div>
                </div>

                <div class="form-group">
                    <label class="col-sm-2 control-label">专业名称</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" id="show-major-name"
                               placeholder="请输入专业" name="majorName">
                    </div>
                </div>

                <div class="form-group">
                    <label class="col-sm-2 control-label">招生人数</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" id="show-major-count"
                               placeholder="请输入人数" name="majorCount">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">专业年制</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" id="show-major-year"
                               placeholder="请输入年制" name="majorYear">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">录取分数线</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" id="show-major-score"
                               placeholder="请输入录取分数线" name="majorScore">
                    </div>
                </div>
            </form>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">
                    关闭
                </button>
            </div>
        </div><!-- /.modal-content -->
    </div><!-- /.modal-dialog -->
</div><!-- /.modal -->


</body>
<script src="http://cdn.datatables.net/1.10.21/js/jquery.dataTables.min.js"></script>
<script src="../common/js/constant.js"></script>
<script src="js/major.js">
</script>
</html>